import {lazy} from 'react';
import {Navigate} from 'react-router-dom';
const BaseView = lazy(() => import('@/views'));

export const router = [
  {
    path: '*',
    element: <Navigate to="/main" />, // 使用重定向
  },

  {
    path: '/main',
    element: <BaseView />,
  },
];
